CC=g++
CXXFLAGS= -Wall -g -O1
OFILES=etl_hash.o etl_list.o etl_string.o etl_variant.o etl_xml.o etl_dir.o etl_socket.o etl_connection_base.o etl_server_socket.o etl_calendar.o
all : libetl.so
libetl.so : $(OFILES)
	g++ $(CXXFLAGS) --shared -o libetl.so $(OFILES)
test : libetl.so
	g++ $(CXXFLAGS) -L. -otest test.cpp -letl -lsqlite3
install :
	mkdir -p /usr/include/etl
	cp -f *.h /usr/include/etl
	cp -f libetl.so /usr/lib/
uninstall :
	rm -rf /usr/include/etl
	rm -rf /usr/lib/libetl.so
clean :
	rm -f *~
	rm -f *.o
	rm -f libetl.so
	rm -f test
